<?php

/**
 * Pwiff - PHP SWF Library
 *
 * LICENSE
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @package    Pwiff
 * @subpackage Records
 * @copyright  Copyright (c) 2010 Steven Harris
 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
 * @version    $Id: End.php 8 2010-02-22 04:06:23Z indigo.sunrise $
 */

/**
 * The EndShapeRecord.
 *
 * @package    Pwiff
 * @subpackage Records
 */
class Pwiff_Record_Shape_End extends Pwiff_Record_Shape_NonEdge
{
	/**
	 * Gets the length of the record. Six bits, so 1 byte.
	 *
	 * @return int
	 */
	public function getRecordLength()
	{
		return 1;
	}
	
	/**
	 * Writes the type flag and 5 empty bits.
	 * 
	 * @param  Pwiff_Output $out
	 */
	public function write(Pwiff_Output $out)
	{
		parent::write($out);
		$out->writeBits(0, 5);
	}
}
